package com.hrp.service;

import com.hrp.domain.Role;
import com.hrp.hrpdao.RoleDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2018/8/5 0005.
 */
@Service
public class RoleService {

    @Autowired
    private RoleDao roleDao;

    public List<Role> getAllRoles(){
        return  roleDao.getAllRoles();
    }
}
